
<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <script src="avalon.js"></script>
        <script>
            var model = avalon.define("clear", function(vm) {
                vm.array = [1, 2, 3, 4, 5]
            })
            setTimeout(function() {
                model.array.clear()
                setTimeout(function() {
                    model.array.push("aa", "bb", "cc", "dd")
                }, 3000)
            }, 3000)
        </script>
    </head>
    <body ms-controller='clear'>
        <ol ms-each='array'>
            <li>{{el}}</li>
        </ol>
        <ul>
            <li  ms-repeat='array'>{{el}}</li>
        </ul>
    </body>
</html>
